package com.sale.system.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import com.sale.system.domain.SysSettle;
import com.sale.system.service.ISysSettleService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 结账 反结账控制层
 * @Date 23-07-07
 * @Author hl
 **/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/settle")
public class SysSettleController extends BaseController {

    private final ISysSettleService sysSettleService;

    /**
     * 分页查询结账反结账信息
     */
    //@SaCheckPermission("system:reverseClosing:list")
    @GetMapping("/list")
    public TableDataInfo<SysSettle> list(SysSettle sysSettle, PageQuery pageQuery)
    {
        return sysSettleService.selectSettleList(sysSettle,pageQuery);
    }



}
